﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000485 RID: 1157
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnterSummonActivityStageScRsp : IMessage<EnterSummonActivityStageScRsp>, IMessage, IEquatable<EnterSummonActivityStageScRsp>, IDeepCloneable<EnterSummonActivityStageScRsp>, IBufferMessage
	{
		// Token: 0x17000EE8 RID: 3816
		// (get) Token: 0x0600341C RID: 13340 RVA: 0x0008F5EF File Offset: 0x0008D7EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnterSummonActivityStageScRsp> Parser
		{
			get
			{
				return EnterSummonActivityStageScRsp._parser;
			}
		}

		// Token: 0x17000EE9 RID: 3817
		// (get) Token: 0x0600341D RID: 13341 RVA: 0x0008F5F6 File Offset: 0x0008D7F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnterSummonActivityStageScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000EEA RID: 3818
		// (get) Token: 0x0600341E RID: 13342 RVA: 0x0008F608 File Offset: 0x0008D808
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnterSummonActivityStageScRsp.Descriptor;
			}
		}

		// Token: 0x0600341F RID: 13343 RVA: 0x0008F60F File Offset: 0x0008D80F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterSummonActivityStageScRsp()
		{
		}

		// Token: 0x06003420 RID: 13344 RVA: 0x0008F618 File Offset: 0x0008D818
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterSummonActivityStageScRsp(EnterSummonActivityStageScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this.fightStageId_ = other.fightStageId_;
			this.groupId_ = other.groupId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003421 RID: 13345 RVA: 0x0008F67C File Offset: 0x0008D87C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterSummonActivityStageScRsp Clone()
		{
			return new EnterSummonActivityStageScRsp(this);
		}

		// Token: 0x17000EEB RID: 3819
		// (get) Token: 0x06003422 RID: 13346 RVA: 0x0008F684 File Offset: 0x0008D884
		// (set) Token: 0x06003423 RID: 13347 RVA: 0x0008F68C File Offset: 0x0008D88C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000EEC RID: 3820
		// (get) Token: 0x06003424 RID: 13348 RVA: 0x0008F695 File Offset: 0x0008D895
		// (set) Token: 0x06003425 RID: 13349 RVA: 0x0008F69D File Offset: 0x0008D89D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x17000EED RID: 3821
		// (get) Token: 0x06003426 RID: 13350 RVA: 0x0008F6A6 File Offset: 0x0008D8A6
		// (set) Token: 0x06003427 RID: 13351 RVA: 0x0008F6AE File Offset: 0x0008D8AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint FightStageId
		{
			get
			{
				return this.fightStageId_;
			}
			set
			{
				this.fightStageId_ = value;
			}
		}

		// Token: 0x17000EEE RID: 3822
		// (get) Token: 0x06003428 RID: 13352 RVA: 0x0008F6B7 File Offset: 0x0008D8B7
		// (set) Token: 0x06003429 RID: 13353 RVA: 0x0008F6BF File Offset: 0x0008D8BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x0600342A RID: 13354 RVA: 0x0008F6C8 File Offset: 0x0008D8C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnterSummonActivityStageScRsp);
		}

		// Token: 0x0600342B RID: 13355 RVA: 0x0008F6D8 File Offset: 0x0008D8D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnterSummonActivityStageScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.BattleInfo, other.BattleInfo) && this.FightStageId == other.FightStageId && this.GroupId == other.GroupId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600342C RID: 13356 RVA: 0x0008F748 File Offset: 0x0008D948
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this.FightStageId != 0U)
			{
				num ^= this.FightStageId.GetHashCode();
			}
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600342D RID: 13357 RVA: 0x0008F7CF File Offset: 0x0008D9CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600342E RID: 13358 RVA: 0x0008F7D7 File Offset: 0x0008D9D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600342F RID: 13359 RVA: 0x0008F7E0 File Offset: 0x0008D9E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.BattleInfo);
			}
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.GroupId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this.FightStageId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.FightStageId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003430 RID: 13360 RVA: 0x0008F874 File Offset: 0x0008DA74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this.FightStageId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.FightStageId);
			}
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003431 RID: 13361 RVA: 0x0008F8FC File Offset: 0x0008DAFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnterSummonActivityStageScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			if (other.FightStageId != 0U)
			{
				this.FightStageId = other.FightStageId;
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003432 RID: 13362 RVA: 0x0008F98C File Offset: 0x0008DB8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003433 RID: 13363 RVA: 0x0008F998 File Offset: 0x0008DB98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 24U)
				{
					if (num == 18U)
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
						continue;
					}
					if (num == 24U)
					{
						this.GroupId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 80U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 88U)
					{
						this.FightStageId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001479 RID: 5241
		private static readonly MessageParser<EnterSummonActivityStageScRsp> _parser = new MessageParser<EnterSummonActivityStageScRsp>(() => new EnterSummonActivityStageScRsp());

		// Token: 0x0400147A RID: 5242
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400147B RID: 5243
		public const int RetcodeFieldNumber = 10;

		// Token: 0x0400147C RID: 5244
		private uint retcode_;

		// Token: 0x0400147D RID: 5245
		public const int BattleInfoFieldNumber = 2;

		// Token: 0x0400147E RID: 5246
		private SceneBattleInfo battleInfo_;

		// Token: 0x0400147F RID: 5247
		public const int FightStageIdFieldNumber = 11;

		// Token: 0x04001480 RID: 5248
		private uint fightStageId_;

		// Token: 0x04001481 RID: 5249
		public const int GroupIdFieldNumber = 3;

		// Token: 0x04001482 RID: 5250
		private uint groupId_;
	}
}
